import time, os
from selenium import webdriver
from selenium.webdriver.common.by import By

chrome = webdriver.Chrome()
chrome.get("https://www.baidu.cn")
time.sleep(3)
input = chrome.find_element(by=By.XPATH, value= '//*[@id="kw"]')
input.send_keys('xxx')
btn = chrome.find_element(by=By.XPATH, value= '//*[@id="su"]')
btn.click()
time.sleep(10000)